1 REM <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H>LOGIC PROBLEM SOLVER <CTRL-M>CREATIVE COMPUTING <CTRL-M>DECEMBER, 1980 <CTRL-M>PAGE 118
2 HOME
5 PRINT "INSTRUCTIONS - TYPE IN YOUR EQUATIONS IN DATA LINES 6000-6999. WHEN THE COMPUTER ASKS FOR 'MEMBERS IN ORDER' (LINE 40) YOU MUST TYPE IN THE MEMBERS GROUP BY GROUP. ALSO, IF THE MEMBERS OF"
6 PRINT "A GROUP HAVE AN ASCENDING ORDER, YOU MUST TYPE THEM IN IN THAT ASCENDING ORDER."
8 DIM V(11),V1(11),G(12),D$(30),R(6),R1(6),D(50,50)
9 S = 15626:I9 = 1
10 READ W,W,W,W,W
19 INPUT "HOW MANY EQUATIONS? ";P2: PRINT
20 INPUT "NUMBER OF GROUPS? ";N: PRINT
30 INPUT "NUMBER OF MEMBERS IN EACH GROUP? ";A: PRINT
31 H = A
32 PRINT ".";
40 PRINT "INPUT MEMBERS IN ORDER"
50 FOR X = 1 TO N *A: INPUT D$(X): NEXT X
100 FOR X = 1 TO N *A
110 D(X,X) = 3: IF X < = H THEN GOSUB 4500
120 NEXT X
155 FOR R2 = A -1 TO 2 STEP -1
1005 READ C$,D$,F$
1010 K = 0:Z = 0:Z1 = 0
1011 PRINT ".";
1019 P2 = P2 -1
1020 FOR X = 1 TO N *A
1022 IF C$ = D$(X) THEN Z = X
1024 IF F$ = D$(X) THEN Z1 = X
1026 NEXT X
1027 IF Z1 < >0 THEN IF Z < >0 THEN 1030
1028 PRINT "THERE IS A TYPING ERROR ... SOMEWHERE!!": END